import React from "react";
import store from "./store";
import { Provider } from "react-redux";
import Home from "./home";
// 新的api:bindActionCreator
const Index = () => {
  let hanldeChange = event => {
    console.log(event.target);
  };
  return (
    <Provider store={store}>
      <Home />
      <div
        contentEditable={true}
        onKeyDown={hanldeChange}
        suppressContentEditableWarning
      >
        我是可编辑
      </div>
    </Provider>
  );
};

export default Index;
